package org.boot.ssm.wxshop.service;

import org.boot.ssm.wxshop.common.BaseService;
import org.boot.ssm.wxshop.domain.Comment;
import org.boot.ssm.wxshop.domain.User;
import org.boot.ssm.wxshop.web.common.JsonResult;

import java.util.List;
import java.util.Map;

/**
 * @program: wxshop
 * @description: 评论接口
 * @author: Mr.Wang
 * @create: 2018-03-22 15:34
 **/
public interface CommentService extends BaseService<Comment>{
    /**
     * 添加用户评论
     * @param comment
     * @param user
     * @return
     */
    public JsonResult addComment(Comment comment, User user);

    /**
     * 根据商品ID查询评论和用户名集合
     * @param goodsId
     * @return
     */
    public JsonResult queryCommentAndUserNameListByGoodsId(Integer goodsId);
}
